package com.qf.staff.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.qf.staff.pojo.Goods;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface GoodsMapper extends MPJBaseMapper<Goods> {
    @Update("update yu_goods  set status = #{status}  where  goods_id= #{goodsId} ")
    int updateByStatus(Goods goods);


    int updateByAllStatus(@Param("ids") List<Integer> ids, @Param("status") int status);
}